﻿using A.M.Storage.I_Application;
using O.M.Production.Domain.DTO.Produce_work_order;
using O.M.Production.Domain.Entity;
using O.M.Production.ErrorCodeEnum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace O.M.Production.Application.IService
{
    /// <summary>
    /// 质检管理服务接口
    /// </summary>
    public interface I_quality_inspection_management_Service:IBaseServices<quality_inspection_management,string>
    {
        /// <summary>
        /// 分页查询-质检管理
        /// </summary>
        /// <param name="QIMId_Name">编号或名称</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="pageIndex">页码</param>
        /// <returns>统一返回格式</returns>
        Task<ApiResult> Get_quality_inspection_management(string? QIMId_Name,int pageSize,int pageIndex);
        /// <summary>
        /// 返回单个实体-质检管理
        /// </summary>
        /// <param name="id">质检编号</param>
        /// <returns>统一返回格式</returns>
        Task<ApiResult> Get_quality_inspection_management_Model(string id);
        /// <summary>
        /// 修改-质检管理
        /// </summary>
        /// <param name="quality">质检管理实体</param>
        /// <returns>统一返回格式</returns>
        Task<ApiResult> Put_Upd_quality_inspection_management(quality_inspection_management quality);
        /// <summary>
        /// 质检-生产工单
        /// </summary>
        /// <param name="queality_Testing_DTO">质检DTO</param>
        /// <returns>统一返回格式</returns>
        Task<ApiResult> Post__quality_testing(Queality_Testing_DTO queality_Testing_DTO);
    }
}
